import { AMessage,plugin } from "../../api";
import { oImages,Read_yaml } from "../../model/mz";
export class help extends plugin {
    constructor() {
      super({
        name: 'help',
        dsc: '网站模块',
        event: 'message',
        priority: 600,
        rule: [
          {
            reg: /^(#|\/)?名字帮助/,
            fnc: 'help',
          },
        ],
      });
    }
    async help(e:AMessage){
        let helpData = await Read_yaml(1)
        const img =await oImages('/resources/html/help/help.html',{helpData});
        if(img) e.reply(img);
        return ;
    }
}